package real.yingke;

public class IsPrink {
    public class Solution {
        /**
         * 判断是否为回文串
         * @param s string字符串 参数1
         * @return bool布尔型
         */
        public boolean IsHuiWen (String s) {
            int len;
            if (s == null || (len = s.length()) == 0) return false;
            for (int i = 0; i < len / 2; i++) {
                if (s.charAt(i) != s.charAt(len - i - 1)) return false;
            }
            return true;
        }
    }
    
}
